package com.xdtech.hotel.model;

import java.io.Serializable;
import java.util.Date;
import java.sql.Timestamp;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import com.xdtech.core.model.BaseModel;

/**
 * 
 * @author max.zheng
 * @create 2015-04-04 11:13:09
 * @since 1.0
 * @see 
 */
@Entity
@Table(name="HOTEL_DEVICE_LINK_OPTION")
public class DeviceLinkOption extends BaseModel implements Serializable{
	private static final long serialVersionUID = 1L;
	@Id
	@Column(name = "ID")
	@GeneratedValue(strategy = GenerationType.AUTO)
	private Long id;
	@Column(name="NAME")
	private String name;
	@Column(name="VAL")
	private String val;
	@Column(name="REMARK")
	private String remark;
	@ManyToOne
	@JoinColumn(name="LINK_ID")
	private DeviceLink deviceLink;
	
	

	public DeviceLinkOption()
	{
		super();
	}
	public DeviceLinkOption(String name, String val, String remark, DeviceLink deviceLink)
	{
		super();
		this.name = name;
		this.val = val;
		this.remark = remark;
		this.deviceLink = deviceLink;
	}
	public void setId(Long id) {
		this.id = id;
	}
	public Long getId() {
		return id;
	}
	public void setName(String name) {
		this.name = name;
	}
	public String getName() {
		return name;
	}
	public void setVal(String val) {
		this.val = val;
	}
	public String getVal() {
		return val;
	}
	public String getRemark()
	{
		return remark;
	}
	public void setRemark(String remark)
	{
		this.remark = remark;
	}
	public DeviceLink getDeviceLink() {
		return deviceLink;
	}
	public void setDeviceLink(DeviceLink deviceLink) {
		this.deviceLink = deviceLink;
	}
	
}
